﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using KM.Models;

namespace KM.Controllers.Admin
{
    public class AccountController : Controller
    {
        //
        // GET: /Account/

        public ActionResult LogIn()
        {
            Users user = new Users();
            user.UserId = 2;
            user.UserName = "load";
            return View(user);
        }

        //xu ly xu kien post
        [HttpPost]
        public ActionResult LogIn(Users user)
        {
            //Users user = new Users();
            user.UserName = "post";
            return View(user);
        }
        public ActionResult LogOn()
        {
            Users user = new Users();
            user.UserId = 2;
            return View(user);
        }

    }
}
